package com.hp.easyBuy.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hp.easyBuy.entity.DTO.TCommentDTO;
import com.hp.easyBuy.entity.DTO.TCommentDTO2;
import com.hp.easyBuy.entity.TComment;
import org.apache.ibatis.annotations.Param;

/*
* 用户留言
* */
public interface CommentDao extends BaseMapper<TComment> {

    //动态获取留言列表数据
    public Page<TCommentDTO> getAllCommentPage(Page page,@Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    //根据留言id获取留言数据包括一部分用户信息
    public TCommentDTO2 getCommentDTO2Byid(Integer commentid);
}
